import request from '@/utils/request'

// 创建对账单
export function createReportFormsDetail(data) {
  return request({
    url: '/pekingfish/report-forms-detail/create',
    method: 'post',
    data: data
  })
}

// 更新对账单
export function updateReportFormsDetail(data) {
  return request({
    url: '/pekingfish/report-forms-detail/update',
    method: 'put',
    data: data
  })
}

// 删除对账单
export function deleteReportFormsDetail(id) {
  return request({
    url: '/pekingfish/report-forms-detail/delete?id=' + id,
    method: 'delete'
  })
}

// 获得对账单
export function getReportFormsDetail(id) {
  return request({
    url: '/pekingfish/report-forms-detail/get?id=' + id,
    method: 'get'
  })
}

// 获得对账单分页
export function getReportFormsDetailPage(query) {
  return request({
    url: '/pekingfish/report-forms-detail/page',
    method: 'get',
    params: query
  })
}

// 获得对账单分页
export function getCollectPage(query) {
  return request({
    url: '/pekingfish/report-forms-detail/collectPage',
    method: 'get',
    params: query
  })
}

// 获得对账单分页
export function getReportFormsDetailPageStatements(query) {
  return request({
    url: '/pekingfish/report-forms-detail/pageStatements',
    method: 'get',
    params: query
  })
}

// 获得对账单分页
export function getCollectPageStatements(query) {
  return request({
    url: '/pekingfish/report-forms-detail/collectPageStatements',
    method: 'get',
    params: query
  })
}

// 导出对账单 Excel
export function exportReportFormsDetailExcel(query) {
  return request({
    url: '/pekingfish/report-forms-detail/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 导出对账单 Excel
export function exportReportFormsDetailExcelDetail(query) {
  return request({
    url: '/pekingfish/report-forms-detail/export-excelDetail',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
